Skip to content

Conversation

@karthiknew07
Copy link

Fixes #4406

Description

Adds support for parsing Arch Linux .SRCINFO files generated by makepkg. These files contain package metadata for the Arch User Repository (AUR) and Arch Linux packages.

Changes

  • Added SrcinfoHandler in src/packagedcode/srcinfo.py
  • Added test suite in tests/packagedcode/test_srcinfo.py
  • Added 5 test data files covering various scenarios

Features

  • Parses pkgbase (global) and pkgname (per-package) sections
  • Extracts name, version, description, license, dependencies
  • Handles architecture-specific fields (e.g., depends_x86_64)
  • Supports split packages (multiple pkgname sections)
  • Stores checksums and sources in extra_data

Testing

  • ✅ All 5 tests passing locally
  • ✅ Tested with real Arch Linux package examples
  • ✅ Handles edge cases (split packages, arch-specific deps)

Tasks

  • Reviewed contribution guidelines
  • PR is descriptively titled and links issue Support rust makepkg’s .SRCINFO files #4406
  • Tests pass locally (5/5 passing)
  • Commits are in uniquely-named feature branch (add-srcinfo-support)
  • No merge conflicts
  • Updated documentation pages (N/A - new parser)
  • Updated CHANGELOG.rst (will update if requested)

References

@karthiknew07 karthiknew07 force-pushed the add-srcinfo-support branch 2 times, most recently from bb524b1 to 8f5ae89 Compare November 13, 2025 03:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support rust makepkg’s .SRCINFO files

1 participant